package com.ruoyi.netty;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.config.SearchRequestData;
import com.ruoyi.entity.Article;

import java.io.IOException;
import java.util.List;

/**
 * @author hlf
 * @createTime 2025/2/10 16:23
 * @description
 */
public interface ElasticSearchService {


    List<Article> searchWithHighlight(SearchRequestData request);

    void articleAddEs(String payload);

    List<Article> searchScore(SearchRequestData request);


    void articleMessageAll(String payload);

    TableDataInfo highlightList(SearchRequestData request) throws IOException;

    void articleMessageDel(String payload);

    List<Article> getArticleSuggestionText(SearchRequestData request);
}
